<template>
  <div>
    <el-container style="height: 500px; border: 1px solid #eee">
      <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
        <el-menu :default-openeds="['1']">
          <el-submenu index="1">
            <template slot="title"
              ><i class="el-icon-message"></i>导航一</template
            >
            <el-menu-item-group @click="handleSelect">
              <el-menu-item index="1-1" >选项1</el-menu-item>
              <el-menu-item index="1-2">选项2</el-menu-item>
            </el-menu-item-group>
          </el-submenu>
        </el-menu>
      </el-aside>

      <el-container>
        <el-main>
          <div class="content-right">
            <router-view />
          </div>
        </el-main>
      </el-container>
    </el-container>
    <!-- <el-menu
      :default-active="activeIndex"
      class="el-menu-demo"
      mode="horizontal"
      @select="handleSelect"
    >
      <el-menu-item index="1">处理中心</el-menu-item>
      <el-submenu index="2">
        <template slot="title">我的工作台</template>
        <el-menu-item index="2-1">选项1</el-menu-item>
        <el-menu-item index="2-2">选项2</el-menu-item>
        <el-menu-item index="2-3">选项3</el-menu-item>
        <el-submenu index="2-4">
          <template slot="title">选项4</template>
          <el-menu-item index="2-4-1">选项1</el-menu-item>
          <el-menu-item index="2-4-2">选项2</el-menu-item>
          <el-menu-item index="2-4-3">选项3</el-menu-item>
        </el-submenu>
      </el-submenu>
      <el-menu-item index="3" >消息中心</el-menu-item>
    </el-menu> -->
    <!-- <el-menu :default-active="this.$route.path" router mode="horizontal">
      <el-menu-item v-for="(item, i) in navList" :key="i" :index="item.name">
        {{ item.navItem }}
      </el-menu-item>
    </el-menu> -->
  </div>
</template>

<script>
export default {
  data() {
    const item = {
      date: "2016-05-02",
      name: "王小虎",
      address: "上海市普陀区金沙江路 1518 弄",
    };
    return {
      activeIndex: "1",
      // navList: [
      //   { name: "/thirdPathInventoryTable", navItem: "推送管理" },
      //   { name: "/thirdPartyDetailed", navItem: "分公司发送情况查询" },
      //   { name: "/sending", navItem: "任务分发情况" },
      // ],
      columnList: [
        {
          columnId: 1,
          name: "我的审批",
          path: "/sending",
        },
        {
          columnId: 2,
          name: "我的处理",
          path: "/detailed",
        },
      ],
      columnId: 1,
      tableData: Array(20).fill(item),
    };
  },
  methods: {
    atClick() {
      alert("ddddd");
    },
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    },
    // handleGoInfo(item) {
    //   this.$router.push(item.path);
    //   this.columnId = item.columnId;
    // },
  },
};
</script>

<style>
.el-header {
  background-color: #b3c0d1;
  color: #333;
  line-height: 60px;
}

.el-aside {
  color: #333;
}
</style>